package xyz.liuyuhe.StudySpring.ch8.aopconfig;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MainAppAop {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
                "classpath*:ch8/aopconfig/Bean.xml");
        
        IToDo obj = (IToDo)context.getBean("toDo");
        obj.toEat("苹果");
        context.close();
    }
}
